package com.ys.model.dao;

import com.ys.model.pojo.Picture;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PictureMapper {
    int deleteByPrimaryKey(Integer pId);

    int insert(Picture record);

    int insertSelective(Picture record);

    Picture selectByPrimaryKey(Integer pId);

    int updateByPrimaryKeySelective(Picture record);

    int updateByPrimaryKey(Picture record);
    /*根据维护、维修、更换的id获得图片名称*/
    List<String> getPNameByRid(int rId);
    List<String> getPNameByMid(int mId);
    List<String> getPNameByCid(int cId);

}